package com.reebake.ideal.material.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

 /**
 * 属性
 * 
 */
@Schema(name = "属性", description = "")
@TableName("idl_material_attribute")
@Data
public class MaterialAttribute implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Schema(name = "主键", description = "")
    @TableId
    private String attributeId;

    /** 名称 */
    @Schema(name = "名称", description = "")
    private String attributeName;

    /** 类型 */
    @Schema(name = "类型", description = "")
    private String attributeType;

    /** 选择类型 */
    @Schema(name = "选择类型", description = "")
    private String selectType;

    /** 录入方式 */
    @Schema(name = "录入方式", description = "")
    private String inputType;

    /** 是否必须 */
    @Schema(name = "是否必须", description = "")
    private Boolean required;

    /** 排序号 */
    @Schema(name = "排序号", description = "")
    private Integer orderNo;

    /** 备注 */
    @Schema(name = "备注", description = "")
    private String remark;

    /** 删除标识 */
    @Schema(name = "删除标识", description = "")
    @TableLogic
    private Boolean deleteFlag;

    /** 租户号 */
    @Schema(name = "租户号", description = "")
    private String tenantId;

    /** 乐观锁 */
    @Schema(name = "乐观锁", description = "")
    private String revision;

    /** 创建人 */
    @Schema(name = "创建人", description = "")
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    /** 创建时间 */
    @Schema(name = "创建时间", description = "")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    /** 更新人 */
    @Schema(name = "更新人", description = "")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    /** 更新时间 */
    @Schema(name = "更新时间", description = "")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

}